<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VR Sketch Design: Y:/Coding/Unity/VRDesignProject/Assets/Scripts/VRTK_PointerObjectHighlighter.cs 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">VR Sketch Design
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">VR Project</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b93ca4f67e5c4f3d8967bcc66a8efe61.html">Y:</a></li><li class="navelem"><a class="el" href="dir_657949dcc09204b591ba08b2dd60005a.html">Coding</a></li><li class="navelem"><a class="el" href="dir_9e3bf1a2f1e8bb1f1076cb3a500c0924.html">Unity</a></li><li class="navelem"><a class="el" href="dir_d92c12ce3d70d23921038a5d2ecff28d.html">VRDesignProject</a></li><li class="navelem"><a class="el" href="dir_bbf63476caace77856cc7cbaedc98ba5.html">Assets</a></li><li class="navelem"><a class="el" href="dir_a6ab9145be13875259d1d9e44e1e8835.html">Scripts</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">VRTK_PointerObjectHighlighter.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_v_r_t_k___pointer_object_highlighter_8cs.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="keyword">using</span> UnityEngine;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keyword">using</span> VRTK;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">using</span> VRTK.Highlighters;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html">    5</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_v_r_t_k___pointer_object_highlighter.html">VRTK_PointerObjectHighlighter</a> : MonoBehaviour</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;{</div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">    7</a></span>&#160;    <span class="keyword">public</span> VRTK_DestinationMarker <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>;</div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#adc383dc13b1fee99450087526b7646f1">    8</a></span>&#160;    <span class="keyword">public</span> Color <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#adc383dc13b1fee99450087526b7646f1">hoverColor</a> = Color.cyan;      <span class="comment">// 射线悬停的颜色</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#af6c112fd05b3a868ff2361fdb91aad24">    9</a></span>&#160;    <span class="keyword">public</span> Color <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#af6c112fd05b3a868ff2361fdb91aad24">selectColor</a> = Color.yellow;    <span class="comment">// 选中物体的颜色</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#a84d1945bdd6db36af5084fa7d605f7c1">   10</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">bool</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a84d1945bdd6db36af5084fa7d605f7c1">logEnterEvent</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#aec6d1d8fc74bee07539856c11315be89">   11</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">bool</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aec6d1d8fc74bee07539856c11315be89">logHoverEvent</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#ab86fa9749d5644e5f1eb4614435ed0d5">   12</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">bool</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ab86fa9749d5644e5f1eb4614435ed0d5">logExitEvent</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#a9e2db2dd5b94a22a31d507feb08c80df">   13</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">bool</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a9e2db2dd5b94a22a31d507feb08c80df">logSetEvent</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#a50493c7bc641647c33a83e0bd97073e7">   15</a></span>&#160;    <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a50493c7bc641647c33a83e0bd97073e7">OnEnable</a>()</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    {</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a> = (<a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a> == <span class="keyword">null</span> ? GetComponent&lt;VRTK_DestinationMarker&gt;() : <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>); <span class="comment">// 获取pointer</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        {</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerEnter += <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aa9ce63e3c1e2fa0be129dad389607faa">DestinationMarkerEnter</a>;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerHover += <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a3fe3e879adb129c5262ac903130d1dfe">DestinationMarkerHover</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerExit += <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ad0a36d6283bf2224f5b63553912887ba">DestinationMarkerExit</a>;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerSet += <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aa3c0f3a79147f1264156e798cad6fb7e">DestinationMarkerSet</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        }</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        {</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            VRTK_Logger.Error(VRTK_Logger.GetCommonMessage(VRTK_Logger.CommonMessageKeys.REQUIRED_COMPONENT_MISSING_FROM_GAMEOBJECT, <span class="stringliteral">&quot;VRTKExample_PointerObjectHighlighterActivator&quot;</span>, <span class="stringliteral">&quot;VRTK_DestinationMarker&quot;</span>, <span class="stringliteral">&quot;the Controller Alias&quot;</span>));</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        }</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    }</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#ad14fc09d5b02c796107b9a54ac20ee15">   32</a></span>&#160;    <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ad14fc09d5b02c796107b9a54ac20ee15">OnDisable</a>()</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerEnter -= <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aa9ce63e3c1e2fa0be129dad389607faa">DestinationMarkerEnter</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerHover -= <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a3fe3e879adb129c5262ac903130d1dfe">DestinationMarkerHover</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerExit -= <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ad0a36d6283bf2224f5b63553912887ba">DestinationMarkerExit</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">pointer</a>.DestinationMarkerSet -= <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aa3c0f3a79147f1264156e798cad6fb7e">DestinationMarkerSet</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    }</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#aa9ce63e3c1e2fa0be129dad389607faa">   43</a></span>&#160;    <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aa9ce63e3c1e2fa0be129dad389607faa">DestinationMarkerEnter</a>(<span class="keywordtype">object</span> sender, DestinationMarkerEventArgs e)</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    {</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a83c69f6a2b9ccf572283f3a3df50ba62">ToggleHighlight</a>(e.target, <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#adc383dc13b1fee99450087526b7646f1">hoverColor</a>);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a84d1945bdd6db36af5084fa7d605f7c1">logEnterEvent</a>)</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a9acd2bac07932d7b02e16d12e59608f9">DebugLogger</a>(VRTK_ControllerReference.GetRealIndex(e.controllerReference), <span class="stringliteral">&quot;POINTER ENTER&quot;</span>, e.target, e.raycastHit, e.distance, e.destinationPosition);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        }</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#a3fe3e879adb129c5262ac903130d1dfe">   52</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a3fe3e879adb129c5262ac903130d1dfe">DestinationMarkerHover</a>(<span class="keywordtype">object</span> sender, DestinationMarkerEventArgs e)</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aec6d1d8fc74bee07539856c11315be89">logHoverEvent</a>)</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a9acd2bac07932d7b02e16d12e59608f9">DebugLogger</a>(VRTK_ControllerReference.GetRealIndex(e.controllerReference), <span class="stringliteral">&quot;POINTER HOVER&quot;</span>, e.target, e.raycastHit, e.distance, e.destinationPosition);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        }</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#ad0a36d6283bf2224f5b63553912887ba">   60</a></span>&#160;    <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ad0a36d6283bf2224f5b63553912887ba">DestinationMarkerExit</a>(<span class="keywordtype">object</span> sender, DestinationMarkerEventArgs e)</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a83c69f6a2b9ccf572283f3a3df50ba62">ToggleHighlight</a>(e.target, Color.clear);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#ab86fa9749d5644e5f1eb4614435ed0d5">logExitEvent</a>)</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a9acd2bac07932d7b02e16d12e59608f9">DebugLogger</a>(VRTK_ControllerReference.GetRealIndex(e.controllerReference), <span class="stringliteral">&quot;POINTER EXIT&quot;</span>, e.target, e.raycastHit, e.distance, e.destinationPosition);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        }</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#aa3c0f3a79147f1264156e798cad6fb7e">   69</a></span>&#160;    <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#aa3c0f3a79147f1264156e798cad6fb7e">DestinationMarkerSet</a>(<span class="keywordtype">object</span> sender, DestinationMarkerEventArgs e)</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a83c69f6a2b9ccf572283f3a3df50ba62">ToggleHighlight</a>(e.target, <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#af6c112fd05b3a868ff2361fdb91aad24">selectColor</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a9e2db2dd5b94a22a31d507feb08c80df">logSetEvent</a>)</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a9acd2bac07932d7b02e16d12e59608f9">DebugLogger</a>(VRTK_ControllerReference.GetRealIndex(e.controllerReference), <span class="stringliteral">&quot;POINTER SET&quot;</span>, e.target, e.raycastHit, e.distance, e.destinationPosition);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#a83c69f6a2b9ccf572283f3a3df50ba62">   78</a></span>&#160;    <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a83c69f6a2b9ccf572283f3a3df50ba62">ToggleHighlight</a>(Transform target, Color color)</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        VRTK_BaseHighlighter highligher = (target != <span class="keyword">null</span> ? target.GetComponentInChildren&lt;VRTK_BaseHighlighter&gt;() : <span class="keyword">null</span>);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keywordflow">if</span> (highligher != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            highligher.Initialise();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            <span class="keywordflow">if</span> (color != Color.clear)</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                highligher.Highlight(color);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                highligher.Unhighlight();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            }</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        }</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_v_r_t_k___pointer_object_highlighter.html#a9acd2bac07932d7b02e16d12e59608f9">   95</a></span>&#160;    <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_v_r_t_k___pointer_object_highlighter.html#a9acd2bac07932d7b02e16d12e59608f9">DebugLogger</a>(uint index, <span class="keywordtype">string</span> action, Transform target, RaycastHit raycastHit, <span class="keywordtype">float</span> distance, Vector3 tipPosition)</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordtype">string</span> targetName = (target ? target.name : <span class="stringliteral">&quot;&lt;NO VALID TARGET&gt;&quot;</span>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordtype">string</span> colliderName = (raycastHit.collider ? raycastHit.collider.name : <span class="stringliteral">&quot;&lt;NO VALID COLLIDER&gt;&quot;</span>);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="comment">//VRTK_Logger.Info(&quot;Controller on index &#39;&quot; + index + &quot;&#39; is &quot; + action + &quot; at a distance of &quot; + distance + &quot; on object named [&quot; + targetName + &quot;] on the collider named [&quot; + colliderName + &quot;] - the pointer tip position is/was: &quot; + tipPosition);</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;}</div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html">VRTK_PointerObjectHighlighter</a></div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00005">VRTK_PointerObjectHighlighter.cs:6</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_a3fe3e879adb129c5262ac903130d1dfe"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#a3fe3e879adb129c5262ac903130d1dfe">VRTK_PointerObjectHighlighter.DestinationMarkerHover</a></div><div class="ttdeci">void DestinationMarkerHover(object sender, DestinationMarkerEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00052">VRTK_PointerObjectHighlighter.cs:52</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_a50493c7bc641647c33a83e0bd97073e7"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#a50493c7bc641647c33a83e0bd97073e7">VRTK_PointerObjectHighlighter.OnEnable</a></div><div class="ttdeci">virtual void OnEnable()</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00015">VRTK_PointerObjectHighlighter.cs:15</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_a83c69f6a2b9ccf572283f3a3df50ba62"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#a83c69f6a2b9ccf572283f3a3df50ba62">VRTK_PointerObjectHighlighter.ToggleHighlight</a></div><div class="ttdeci">virtual void ToggleHighlight(Transform target, Color color)</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00078">VRTK_PointerObjectHighlighter.cs:78</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_a84d1945bdd6db36af5084fa7d605f7c1"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#a84d1945bdd6db36af5084fa7d605f7c1">VRTK_PointerObjectHighlighter.logEnterEvent</a></div><div class="ttdeci">bool logEnterEvent</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00010">VRTK_PointerObjectHighlighter.cs:10</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_a9acd2bac07932d7b02e16d12e59608f9"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#a9acd2bac07932d7b02e16d12e59608f9">VRTK_PointerObjectHighlighter.DebugLogger</a></div><div class="ttdeci">virtual void DebugLogger(uint index, string action, Transform target, RaycastHit raycastHit, float distance, Vector3 tipPosition)</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00095">VRTK_PointerObjectHighlighter.cs:95</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_a9e2db2dd5b94a22a31d507feb08c80df"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#a9e2db2dd5b94a22a31d507feb08c80df">VRTK_PointerObjectHighlighter.logSetEvent</a></div><div class="ttdeci">bool logSetEvent</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00013">VRTK_PointerObjectHighlighter.cs:13</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_aa3c0f3a79147f1264156e798cad6fb7e"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#aa3c0f3a79147f1264156e798cad6fb7e">VRTK_PointerObjectHighlighter.DestinationMarkerSet</a></div><div class="ttdeci">virtual void DestinationMarkerSet(object sender, DestinationMarkerEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00069">VRTK_PointerObjectHighlighter.cs:69</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_aa9ce63e3c1e2fa0be129dad389607faa"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#aa9ce63e3c1e2fa0be129dad389607faa">VRTK_PointerObjectHighlighter.DestinationMarkerEnter</a></div><div class="ttdeci">virtual void DestinationMarkerEnter(object sender, DestinationMarkerEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00043">VRTK_PointerObjectHighlighter.cs:43</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_ab86fa9749d5644e5f1eb4614435ed0d5"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#ab86fa9749d5644e5f1eb4614435ed0d5">VRTK_PointerObjectHighlighter.logExitEvent</a></div><div class="ttdeci">bool logExitEvent</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00012">VRTK_PointerObjectHighlighter.cs:12</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_ad0a36d6283bf2224f5b63553912887ba"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#ad0a36d6283bf2224f5b63553912887ba">VRTK_PointerObjectHighlighter.DestinationMarkerExit</a></div><div class="ttdeci">virtual void DestinationMarkerExit(object sender, DestinationMarkerEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00060">VRTK_PointerObjectHighlighter.cs:60</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_ad14fc09d5b02c796107b9a54ac20ee15"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#ad14fc09d5b02c796107b9a54ac20ee15">VRTK_PointerObjectHighlighter.OnDisable</a></div><div class="ttdeci">virtual void OnDisable()</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00032">VRTK_PointerObjectHighlighter.cs:32</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_adc383dc13b1fee99450087526b7646f1"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#adc383dc13b1fee99450087526b7646f1">VRTK_PointerObjectHighlighter.hoverColor</a></div><div class="ttdeci">Color hoverColor</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00008">VRTK_PointerObjectHighlighter.cs:8</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_ae69c4f22a6ceb13069a7e9c5023fce39"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#ae69c4f22a6ceb13069a7e9c5023fce39">VRTK_PointerObjectHighlighter.pointer</a></div><div class="ttdeci">VRTK_DestinationMarker pointer</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00007">VRTK_PointerObjectHighlighter.cs:7</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_aec6d1d8fc74bee07539856c11315be89"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#aec6d1d8fc74bee07539856c11315be89">VRTK_PointerObjectHighlighter.logHoverEvent</a></div><div class="ttdeci">bool logHoverEvent</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00011">VRTK_PointerObjectHighlighter.cs:11</a></div></div>
<div class="ttc" id="aclass_v_r_t_k___pointer_object_highlighter_html_af6c112fd05b3a868ff2361fdb91aad24"><div class="ttname"><a href="class_v_r_t_k___pointer_object_highlighter.html#af6c112fd05b3a868ff2361fdb91aad24">VRTK_PointerObjectHighlighter.selectColor</a></div><div class="ttdeci">Color selectColor</div><div class="ttdef"><b>Definition:</b> <a href="_v_r_t_k___pointer_object_highlighter_8cs_source.html#l00009">VRTK_PointerObjectHighlighter.cs:9</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
